package day6;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class WriteTest {
    public static void main(String[] args) {
        System.out.println((byte)10000);
        try {
            //文件没有能创建，目录没有，报错
            FileOutputStream fin=new FileOutputStream("E:/temp/java75/花名册.txt",true);
            fin.write("\r\n吴浩林看上东兴好久了".getBytes());
            fin.write(65);
            fin.write(66);
            fin.write(10000);
            fin.write(67);
            fin.close();//不合适
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
